package org.lendoo.web.mapper;

import org.apache.ibatis.annotations.Param;
import org.lendoo.web.entity.RelUserAddress;
import org.lendoo.web.pojo.dto.RelUserAddressDto;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * RelUserAddress的mapper类
 */
@Repository
public interface RelUserAddressMapper extends EasyBaseMapper<RelUserAddress> {

    /**
     * 根据usrId，查询用户的地址列表
     * @param userId
     * @return
     */
    List<RelUserAddressDto> findByUserId(@Param("userId") Integer userId);
}